package sz.szsmk.citizencard.model.network.bean.request;

import sz.szsmk.citizencard.DaggerApplication;
import sz.szsmk.citizencard.util.ACache;
import sz.szsmk.citizencard.util.AndroidUtils;

/**
 * Copyright (c)2018
 * author: zdh
 * created on: 2018/6/6 17:05
 * description:
 */
public class IBaseRequest {
    private String device_id;
    private String access_token;
    private String sign;

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getDevice_id() {
        return device_id;
    }



    public void setDevice_id(String device_id) {
        this.device_id = device_id;
    }
    public IBaseRequest(){
        device_id = AndroidUtils.getAndroidId(DaggerApplication.getIns());
        if(ACache.get(DaggerApplication.getIns()).getAsString("access_token")==null){
            access_token =  "";
        }else{
            access_token = ACache.get(DaggerApplication.getIns()).getAsString("access_token");
        }
    }

}
